﻿namespace LeadMaster.Models
{
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.ComponentModel.DataAnnotations;

  public class PurchaseOrders
  {
    public int PurchaseOrderID { get; set; }

    public int LeadID { get; set; }

    public int? WeekNo { get; set; }

    [DisplayFormat(DataFormatString = "{0:dd/MM/yyy}", ApplyFormatInEditMode=true)]
    [Display(Name="Wk Beg")]
    public DateTime? WeekBeginning { get; set; }

    [DisplayFormat(DataFormatString = "{0:dd/MM/yyy}", ApplyFormatInEditMode = true)]
    [Display(Name = "Wk End")]
    public DateTime? WeekEnding { get; set; }

    public int Quantity { get; set; }

    public string PID { get; set; }

    public int? Accepted { get; set; }

    public int? Rejected { get; set; }

    public int? Replaced { get; set; }

    public int? Deficit { get; set; }

    public string Notes { get; set; }

    [Display(Name="Call Centre")]
    public int? CallCentreID { get; set; }

    [Display(Name = "Inv Rets")]
    public int? InvalidReturns { get; set; }

    [Display(Name="Auth Following PO")]
    public bool? AuthoriseFollowingPO { get; set; }

    [Display(Name="Sales Inv No")]
    public string SalesInvoiceNumber { get; set; }

    [Display(Name="Total Leads Supplied")]
    public int? TotalLeadsSupplied { get; set; }

    public bool? Visible { get; set; }

    public bool? Paid { get; set; }

    [Display(Name="Client Paid")]
    public bool? ClientPaid { get; set; }

    [Display(Name="CC Price Per Lead")]
    public decimal? PricePerLead { get; set; }

    [Display(Name = "Call Centre Notes")]
    public string CCNotes { get; set; }

    [Display(Name = "Price Per Group")]
    public decimal? PricePerGroup { get; set; }

    public int? Credits { get; set; }

    [Display(Name="Credits Per Group")]
    public int? CreditsPerGroup { get; set; }

    [Display(Name="Credits For Complete Lead")]
    public int? CreditsComplete { get; set; }

    [Display(Name="Date Paid Call Centre")]
    public DateTime? DatePaidCC { get; set; }

    [Display(Name = "Client Fee Per Lead")]
    public decimal? ClientFeePerLead { get; set; }

    [Display(Name = "Combination Ratio")]
    public decimal? CombinationRatio { get; set; }

    [Display(Name="Balance To Pay CC")]
    public decimal? BalanceToPay { get; set; }

    public bool? terminated { get; set; }

    public int? SurveyID { get; set; }

    public bool? Exclusivity { get; set; }

    [Display(Name = "HTTPS Location To Post Data To")]
    public string PostURL { get; set; }

    [Display(Name="Post Directly To Location ?")]
    public bool? DirectPost { get; set; }

    public int? Cap { get; set; }

    public virtual Leads Lead { get; set; }

    [Display(Name="Call Centre")]
    public virtual CallCentres CallCentre { get; set; }

    public virtual Surveys Survey { get; set; }

  }
}